package com.zhentao.service;



import com.github.pagehelper.PageInfo;
import com.zhentao.model.dto.system.AssginRoleDto;
import com.zhentao.model.dto.system.LoginDto;
import com.zhentao.model.dto.system.SysUserDto;
import com.zhentao.model.entity.system.SysUser;
import com.zhentao.model.vo.system.LoginVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
* @author 懒阳阳
* @description 针对表【sys_user(用户表)】的数据库操作Service
* @createDate 2025-02-08 14:45:04
*/
public interface SysUserService{

    LoginVo login(LoginDto loginDto);

    void logout(String token);

    PageInfo<SysUser> findByPage(SysUserDto sysUserDto, Integer pageNum, Integer pageSize);

    void saveSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteSysUser(Long userId);

    void doAssign(AssginRoleDto assginRoleDto);

    String uploadImages(MultipartFile file) throws IOException;
}
